<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_news
 * @copyright	Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

$images = json_decode($item->images);
//var_dump($images);

$category_params = json_decode($item->category_params);
?>
<?php  if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
<div class="mficquotes-image">
<img
	src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>
<div class="mficquotes-overlay"></div>
<?php elseif(isset($category_params->image) and !empty($category_params->image)): ?>
<div class="mficquotes-image">
<img
	src="<?php echo htmlspecialchars($category_params->image); ?>"/>
</div>
<div class="mficquotes-overlay"></div>
<?php endif; ?>

<?php if ($params->get('item_title')) : ?>

	<div class="mficquotes-title<?php echo $params->get('moduleclass_sfx'); ?>">
	<?php if ($params->get('link_titles') && $item->link != '') : ?>
		<a href="<?php echo $item->link;?>">
			<?php echo $item->image_intro_caption;?></a>
	<?php else : ?>
		<?php echo $item->image_intro_caption; ?>
	<?php endif; ?>
	</div>

<?php endif; ?>
